package com.pan.template.ctrl;

import com.pan.utils.UmlConfig;

public enum CtrlCellY {
    INSTANCE;

    private int y;
    private static int lineBetween = 8;
    private int yBetween;{
        //每行的间距
        yBetween = UmlConfig.INSTANCE.getHeightUnit();
    }

    public void reset(){
        y = 0;
    }


    public int nextLineY(){
        int result = y;
        y += lineBetween;
        return result;
    }

    public int nextCellY(){
        int result = y;
        y += yBetween;
        return result;
    }

}
